<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试ajax请求</title>
</head>
<body>
<script src="../lib/jQuery/jquery-3.2.1.min.js"></script>
<script src="../js/api.js"></script>
<script>
    API.getAuthInfo().then(function(data){
        console.dir(data);
    })
</script>
</body>
</html>